package com.lijian.netty.chatroom3.client;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author lj02
 * @desc
 * @date 2018/11/22
 */
public class ChatClientChannelHandlerAdapter extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {
        System.out.println(" " + msg);

//        ctx.writeAndFlush(" from client " + msg);
    }

}
